package com.redshark.wmm.Bluetooth;

public class SDCPMessage extends BluetoothMessage {
	
	private int ack = 0;
	private int[] data;
	private boolean ackPresent;
	
	public SDCPMessage(int type, int command, int messageNum, int ack) {
		super(type, command, messageNum);
		
		this.ack = ack;
		ackPresent = true;
	}
	
	public SDCPMessage(int type, int command, int messageNum, int[] data) {
		super(type, command, messageNum);
		
		this.data = data;
		ackPresent = false;
	}
	
	public int getAck() {
		return ack;
	}

	public void setAck(int ack) {
		this.ack = ack;
	}

	public int[] getData() {
		return data;
	}

	public void setData(int[] data) {
		this.data = data;
	}

	public boolean isAck() {
		return ackPresent;
	}

	public void setIsAck(boolean ackPresent) {
		this.ackPresent = ackPresent;
	}

}
